package mi.payment.settings;

import java.io.Serializable;

/**
 * 离线交易控制
 *
 * @author lj on 2017/2/16.
 */
public class OfflineTransactionSettings implements Serializable {

    // 文件无变化
    private static final long serialVersionUID = 1275895153881640863L;
    /**
     * 离线交易控制KEY
     **/
    public final static String OFFLINE_TRANSACTION_KEY = "offlineTransactionSettings";

    //离线上送次数
    private int offlinePushCount = 3;
    //自动上送累计笔数
    private int automaticallyNumber = 10;
    //是否支持小额代付
    private boolean smallPaymentWay = false;

    @Override
    public String toString() {
        return "OfflineTransactionSettings{" +
                "offlinePushCount=" + offlinePushCount +
                ", automaticallyNumber=" + automaticallyNumber +
                ", smallPaymentWay=" + smallPaymentWay +
                '}';
    }

    public int getOfflinePushCount() {
        return offlinePushCount;
    }

    public int getAutomaticallyNumber() {
        return automaticallyNumber;
    }

    public boolean isSmallPaymentWay() {
        return smallPaymentWay;
    }

    protected void setOfflinePushCount(int offlinePushCount) {
        this.offlinePushCount = offlinePushCount;
    }

    protected void setAutomaticallyNumber(int automaticallyNumber) {
        this.automaticallyNumber = automaticallyNumber;
    }

    protected void setSmallPaymentWay(boolean smallPaymentWay) {
        this.smallPaymentWay = smallPaymentWay;
    }

}
